﻿@using Webdiyer.WebControls.AspNetCore;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper "*,Webdiyer.WebControls.MvcPager"
@using DemoTools.BLL.DemoNorthwind
@model AzEmployeesList

<div style="clear: both;"></div>
<div id="azemployeesTargetId">
     <table>
       <tr>
        		<th colspan=" 19 " class="table - title">
		员工表
	</th>
	</tr>
	<tr>
	<th>EmployeeID_simpCN</th>
	<th>LastName_simpCN</th>
	<th>FirstName_simpCN</th>
	<th>Title_simpCN</th>
	<th>TitleOfCourtesy_simpCN</th>
	<th>BirthDate_simpCN</th>
	<th>HireDate_simpCN</th>
	<th>Address_simpCN</th>
	<th>City_simpCN</th>
	<th>Region_simpCN</th>
	<th>PostalCode_simpCN</th>
	<th>Country_simpCN</th>
	<th>HomePhone_simpCN</th>
	<th>Extension_simpCN</th>
	<th>Photo_simpCN</th>
	<th>Notes_simpCN</th>
	<th>ReportsTo_simpCN</th>
	<th>PhotoPath_simpCN</th>
	<th>操作</th>

       </tr>
        @foreach (var item in Model)
        {
               <tr>
                   	<td> @Html.DisplayFor(modelItem=>item.EmployeeID)</td>
	<td> @Html.DisplayFor(modelItem=>item.LastName)</td>
	<td> @Html.DisplayFor(modelItem=>item.FirstName)</td>
	<td> @Html.DisplayFor(modelItem=>item.Title)</td>
	<td> @Html.DisplayFor(modelItem=>item.TitleOfCourtesy)</td>
	<td> @Html.DisplayFor(modelItem=>item.BirthDate)</td>
	<td> @Html.DisplayFor(modelItem=>item.HireDate)</td>
	<td> @Html.DisplayFor(modelItem=>item.Address)</td>
	<td> @Html.DisplayFor(modelItem=>item.City)</td>
	<td> @Html.DisplayFor(modelItem=>item.Region)</td>
	<td> @Html.DisplayFor(modelItem=>item.PostalCode)</td>
	<td> @Html.DisplayFor(modelItem=>item.Country)</td>
	<td> @Html.DisplayFor(modelItem=>item.HomePhone)</td>
	<td> @Html.DisplayFor(modelItem=>item.Extension)</td>
	<td> @Html.DisplayFor(modelItem=>item.Photo)</td>
	<td> @Html.DisplayFor(modelItem=>item.Notes)</td>
	<td> @Html.DisplayFor(modelItem=>item.ReportsTo)</td>
	<td> @Html.DisplayFor(modelItem=>item.PhotoPath)</td>
	<td>
	@Html.ActionLink("增加", "Create", new { Id=item.EmployeeID })
	@Html.ActionLink("删除", "Delete", new { Id=item.EmployeeID })
	@Html.ActionLink("编辑", "Edit", new { Id=item.EmployeeID })
	@Html.ActionLink("明细", "Details", new { Id=item.EmployeeID })
	</td>


               </tr>
	      
         }
     </table>
 </div>
<mvcpager asp-model="@Model" ajax-enabled="true" ajax-update-target="azemployeesTargetId"></mvcpager>